package io.kubesphere.devops.dao;

import io.kubesphere.devops.model.UserMergingRule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMergingRuleDao {
    @Select("SELECT user_merging_rule_id userMergingRuleId,table_name tableName,table_pk_name tablePkName, merge_rule mergeRule,merge_rule_function mergeRuleFunction" +
            ",merge_identification_name mergeIdentificationName,merge_order mergeOrder,table_pk_generate tablePkGenerate,schema_name schemaName FROM " +
            "user_merging_rule")
    List<UserMergingRule> getAll();
}
